<template>
  <div class="input-filter" v-if="false">
    <div class="ipt">
      <input placeholder="搜索你想要的关键字"/>
      <van-icon class="icon" name="search" />
    </div>
    <div class="filter">
      <span>筛选</span>
      <image class="rg" src="/static/icon/rg.png"></image>
    </div>
  </div>

  <div class="flex flex-column list-content">
    <template  v-for="(item, index) in list">
      <JobPerson  class="job-person" :job="item"></JobPerson>
    </template>
  </div>
</template>

<script setup lang="ts">

import {onMounted, ref} from 'vue'
import JobPerson from "../../components/JobPerson.vue";
import {jobList_data} from "../../api/Job";
import useQueryPage from "../../hooks/useQueryPage";

onMounted(() => {
})

const {page, list, handleQueryPage, loading} = useQueryPage(jobList_data, {})

</script>

<style lang="scss" scoped>

.input-filter {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 42rpx;
  .ipt {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    height: 68rpx;
    background: rgba(255,255,255,0.06);
    border-radius: 28px;
    border: 2px solid rgba(0,0,0,0.12);
    padding: 0 40rpx;
    input {
      flex: 1;
      height: 68rpx;
      font-size: 26rpx;
      font-weight: 300;
      line-height: 68rpx;
    }
    .icon {
      font-size: 28px;
      color: #0D3333;
    }
  }
  .filter {
    display: flex;
    align-items: center;
    margin-left: 40rpx;
    flex: 0 1 auto;
    span{
      height: 44rpx;
      font-size: 32rpx;
      font-weight: 300;
      color: #0D3333;
      line-height: 44rpx;
    }
  }
}

.list-content {
  background: #F7F7F7;
  padding: 32rpx;
  gap: 24rpx;

  .job-person {
    display: flex;
    flex-flow: column;
    gap: 24rpx
  }

}

</style>
